package com.lysj.bhp.resource.configuration;

import com.lysj.bhp.resource.base.ResourceConst;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class ResourcePathConfiguration extends WebMvcConfigurerAdapter {
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/resource/**").addResourceLocations(ResourceConst.BASE_LOCAL_RESOURCE_DIR_CONFIG);
		super.addResourceHandlers(registry);
	}
}
